using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Home_main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session.Timeout = 30;
        if (Session["username"] == null)
            Response.Redirect("login.aspx");
        int id;
        string us;
        string log = Request["ad"];
        us = (string)Session["username"];
        Session["id"]=Dao.Get_user(us);
        int id_sach=2;
        Datasach.DataSource = users.View_Sach(id_sach);
        Datasach.DataBind();
        DataGiay.DataSource = users.View_Giay(id_sach);
        DataGiay.DataBind();
        Data_dienthoai.DataSource = users.View_Dienthoai(id_sach);
        Data_dienthoai.DataBind();
        Data_maychuphinh.DataSource = users.View_Maychuphinh(id_sach);
        Data_maychuphinh.DataBind();
        Data_maytinh.DataSource = users.View_Maytinh(id_sach);
        Data_maytinh.DataBind();
        Data_trangsuc.DataSource = users.View_Trangsuc(id_sach);
        Data_trangsuc.DataBind();
        Data_banghe.DataSource = users.View_Banghe(id_sach);
        Data_banghe.DataBind();
        Data_mypham.DataSource = users.View_Mypham(id_sach);
        Data_mypham.DataBind();
        Data_nuoc.DataSource = users.View_Nuoc(id_sach);
        Data_nuoc.DataBind();
        Data_capsach.DataSource = users.View_Capsach(id_sach);
        Data_capsach.DataBind();


        //Response.Write(id);
        
       
    }
}
